﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



namespace HAMath
{
  public   class MinMaxDiffResult
    {

      public MinMaxDiffResult(double min,double max)
      {
          this._min = min;
          this._max = max;
          this._dirrerence = Math.Abs(max -min );     
      }

        double _min = 0;
      /// <summary>
      /// 一系列数据中的最小值
      /// </summary>
        public double Min
        {
            get { return _min; }
            //set { _min = value; }
        }


      double _max = 0;
      /// <summary>
      /// 一系列数据中的最大值
      /// </summary>
      public double Max
      {
          get { return _max; }
          //set { _max = value; }
      }


      double _dirrerence = 0;
      /// <summary>
      /// 最大最小值的差值
      /// </summary>
      public double Dirrerence
      {
          get
          {
              return _dirrerence;
          }
          //set { _dirrerence = value; }
      }




    }
}
